package com.example.cc.config;

import com.example.cc.pojo.SimpleBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @title: MyConfiguration
 * @author: lbj
 * @date: 2022/5/25 11:09 下午
 * @description: TODO 类描述
 */

@Configuration
@ConditionalOnBean(ConfigMarker.class)
public class MyConfiguration {

	static {
		System.out.println("MyConfiguration init....");
	}

	@Bean
	public SimpleBean simpleBean(){
		return new SimpleBean();
	}
}
